#!/usr/bin/python

class  egg:
	def __init__(self,count,All_food,price_meal,price_vege,food):
		self.J_count = count
		self.food = food
		self.All_food = All_food
		self.price_meal = price_meal
		self.price_vege = price_vege

	def res(self,x):
		res_v = 0.5 * (x / 100.0) * self.price_vege
		res_me = 0.5* (100-x)/ (100.0) *self.price_meal
		return   self.J_count * (res_v + res_me)
	def min_res(self):
		
		min_res = self.res(1)
		result = [1.000,min_res]
		for i in range (0,8001,1):
			if (((100 - i/100.0000 )/100.0) * self.food *self.J_count <= self.All_food):
				if (self.res((i/100.0)) < min_res):
					result[1] = self.res((i/100.0))
					result[0] = i/100
		return  result
	def run(self):
		return self.min_res()


if __name__ == "__main__":
	count = int(raw_input("count : "))
	price_vege = float(raw_input("price_vege : "))
	price_meal = float(raw_input("price_meal  : "))
	food = float(raw_input("what weight feed : "))
	All_food = int(raw_input("all food sum : "))
	egg_some = egg(count,All_food,price_meal,price_vege,food)

	res = egg_some.run()
	print "\twhen vegetable : %f \n\t     meal : %f \n price is min \n\tAll price : %f " %(res[0],100-res[0],res[1])
